import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class regresaMenu here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class regresaMenu extends Inicio
{
    /**
     * Act - do whatever the regresaMenu wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
     /**
     * Checa si se presiona tecla y se regresa al menu
     */
    public void act() 
    {
        // Add your action code here.
        
        if(Greenfoot.mouseClicked(this))
        {
             Mundo m= (Mundo)super.getWorld();
            if(m!=null)
            {
              click.play();
              m.eliminaObjetos();
              m.prepare(4);
            }
        }
    }    
}
